
/**
 * 储存 sessionStorage
 */
export const setStore = (params = {}) => {
	let {
		name,
		content
	} = params
	window.sessionStorage.setItem(name, JSON.stringify(content))
}
/**
 * 获取 sessionStorage
 */
export const getStore = (params = {}) => {
	let { name } = params
	return JSON.parse(window.sessionStorage.getItem(name))
}
/**
 * 清空全部localStorage
 */
export const clearStore = () => {
	window.sessionStorage.clear()
}
